#include <stdio.h>

int addtotop(int top)
{
  int res = 0;
  int i = 0;
  while(i<=top)
  {
    res+=i;
    i++;
  }
  return res;
}

int main()
{
  printf("debug begin\n");

  int top = 100;
  int sum = addtotop(top);
  printf("sum:%d\n",sum);
  printf("debug end\n");
  return 0;
}
